package com.platform.service.shop.impl;

import com.platform.dao.shop.ContractTplDao;
import com.platform.entity.shop.ContractTplEntity;
import com.platform.service.shop.ContractTplService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-19 17:59:15
 */
@Service("contractTplService")
public class ContractTplServiceImpl implements ContractTplService {
    @Autowired
    private ContractTplDao contractTplDao;

    @Override
    public ContractTplEntity queryObject(Integer id) {
        return contractTplDao.queryObject(id);
    }

    @Override
    public List<ContractTplEntity> queryList(Map<String, Object> map) {
        return contractTplDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return contractTplDao.queryTotal(map);
    }

    @Override
    public int save(ContractTplEntity contracttpl) {
        return contractTplDao.save(contracttpl);
    }

    @Override
    public int update(ContractTplEntity contracttpl) {
        return contractTplDao.update(contracttpl);
    }

    @Override
    public int delete(Integer id) {
        return contractTplDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return contractTplDao.deleteBatch(ids);
    }
}
